<div class="span2">
    <div class="well sidebar-nav">
        <ul class="nav nav-list">
        <?if ($menus) : ?>
            <? foreach ($menus as $menu) : ?>
            <li class="nav-header"><?=$menu['title']?></li>
            <? if ($menu['submenus']) :?>
                <? foreach ($menu['submenus'] as $submenu) : ?>
                    <li><a href="<?=$submenu['url']?>"><?=$submenu['title']?></a></li>
                <? endforeach; ?>
            <? endif; ?>
            <? endforeach; ?>
        <? endif ; ?>
        </ul>
    </div><!--/.well -->
</div><!--/span-->